package com.cn.mapper.dao.db5.PartsManagement;

import com.cn.bean.pojo.bc.User;
import com.cn.bean.vo.PartsManagement.BusinessDepartmentType;
import com.cn.bean.vo.bc.UserDepartments;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BusinessDepartmentTypeDao {
    List<BusinessDepartmentType> selectBusinessDepartmentType(@Param("name")String name,@Param("page")int page,@Param("limit")int limit);
    List<UserDepartments> selectDepartments();
    List<User> selectUserDepartmentsBusinessDepartmentType(@Param("id")int id);
    int addBusinessDepartmentType(@Param("ID")int ID,@Param("departmentID")int departmentID,@Param("businessTypeID")int businessTypeID,@Param("description")String description,@Param("status")int status,@Param("organizationType")int organizationType);
    int addChild(@Param("ID")int ID, @Param("departmentID")int departmentID, @Param("personnelID")int personnelID,  @Param("description")String description,@Param("status")int status);
    List<BusinessDepartmentType> selectBusinessDepartmentTypeMappingAll();
    int deleteBusinessDepartmentTypeMapping(@Param("ID")int ID);
    int deleteBusinessTeamPersonnelInfoTable(@Param("ID")int ID);
    int updateBusinessDepartmentTypeMapping(@Param("departmentID")int departmentID,@Param("businessTypeID")int businessTypeID,@Param("description")String description,@Param("status")int status,@Param("organizationType")int organizationType);
}
